'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.

const path = require('path')
const pxtorem = require('postcss-pxtorem') 
module.exports = {
  dev: {
    // Paths
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    proxyTable: {
      '/api': {
        target: 'https://dev.novalinkpay.com/',
        // target: 'https://vip.novalinkpay.com/',
        changeOrigin: true, 
        pathRewrite: {  
          '^/api': '/api'  
        }
      }
    }, 
    host: 'localhost',  
    port: 8083, 
    autoOpenBrowser: true,
    errorOverlay: true,
    notifyOnErrors: true,
    poll: false,  
    devtool: 'cheap-module-eval-source-map', 
    cacheBusting: true, 
    cssSourceMap: true,  
  },
  build: { 
    index: path.resolve(__dirname, '../dist/index.html'), 
    assetsRoot: path.resolve(__dirname, '../dist'),
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',  
    productionSourceMap: true, 
    devtool: '#source-map', 
    productionGzip: false,
    productionGzipExtensions: ['js', 'css'],
    bundleAnalyzerReport: process.env.npm_config_report
  }, 
}